package com.rtwo.repository;

import com.rtwo.entity.Department;
import com.rtwo.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

/**
 * Created by hasee on 2017/4/19.
 */
@Repository
public interface UserRepository extends JpaRepository<User,Long> {

    User findById(long id);

    User findUserByName(String name);

}
